import request from '@/utils/request'
// 新增菜单
export function addMenu(params) {
    return request({
      url: '/menu/add',
      method: 'post',
      headers: {
        "Content-Type": "application/json;charset=UTF-8",
      },
      data: params
    })
  }
// 菜单列表
export function menuList(params) {
    return request({
      url: '/menu/queryTree',
      method: 'get',
      params
    })
  }
// 编辑菜单
export function editMenu(params) {
    return request({
      url: '/menu/edit',
      method: 'post',
      headers: {
        "Content-Type": "application/json;charset=UTF-8",
      },
      data: params
    })
  }
// 菜单详情
export function menuInfo(params) {
    return request({
      url: '/menu/menuIfo',
      method: 'get',
      params
    })
  }
// 删除菜单
export function delMenu(params) {
    return request({
      url: '/menu/del',
      method: 'post',
      method: 'get',
      params
    })
  }